package com.znk.controller;

import com.znk.entity.Student;
import com.znk.service.StudentService;
import com.znk.service.impl.StudentServiceImpl_01;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@SuppressWarnings("all")
public class Handler {

    @Autowired
    @Qualifier("02")
    private StudentService StudentService;

    @GetMapping("/")
    public String index(){
        Student student=new Student();
        StudentService.abc();
        student.setName("马飞");
        System.out.println(student.getName());
        return student.getName();
    }

}
